#include <stdio.h>

int main()
{
    int a,n;
    scanf("%d %d",&a,&n);
    int sum = 0;
    int tmp = 0;
    for(int i=1;i<=n;i++)
    {
        tmp *= 10;
        tmp += a;
        //printf("%d\n",tmp);
        sum += tmp;
    }
    printf("s = %d\n",sum);
    return 0;
}